package com.hospital.diagnosis.module.base.enums;

/**
 * 聊天标识枚举
 * <br>
 * 0: 聊天中
 * 1: 聊天结束
 * @author yhn
 * @version 1.0
 */
public enum TalkFlag {
    TALKING(0),
    FINISH(1);
    public final Integer value;
    TalkFlag(Integer value) {
        this.value = value;
    }
    public static TalkFlag getByValue(Integer value) {
        for (TalkFlag talkFlag : TalkFlag.values()) {
            if (talkFlag.value.equals(value)) {
                return talkFlag;
            }
        }
        return null;
    }
}
